package org.example.test.bean;

import com.bianmaba.spring.data.jpa.domain.entity.UuidIdentityEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @program: example-web-framework-extends-2x
 * @description:
 * @author: Chenjiabin
 * @create: 2018/11/27 16:08
 **/

@DynamicUpdate(true)
@DynamicInsert(true)
@Entity
public class UserDetail extends UuidIdentityEntity {

    @Column(length = 32)
    private String email;

    public UserDetail() {
    }

    public UserDetail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
